package net.ojbk.study.curriculumDesign.web.handlers.cilentservicer;

import org.springframework.http.ResponseEntity;

import javax.servlet.http.HttpSession;
import java.net.HttpCookie;

/**
 * Created with IntelliJ IDEA.
 * User: twobox
 * Date: 2019/1/8
 * Time: 14:27
 * Description: No Description
 */
public interface ICenterController {
    /**
     * 成为客服
     * @param httpSession
     * @return
     */
    public ResponseEntity<Object> becomeServicer(HttpSession httpSession);

    /**
     * 逃离中心
     * @param httpSession
     * @return
     */
    public ResponseEntity<Object> escapeCenter(HttpSession httpSession);

    /**
     * 获取所有客服
     * @param httpSession
     * @return
     */
    public ResponseEntity<Object> getAllServicer(HttpSession httpSession);

    /**
     * 查看是否有新的请求
     * @param httpSession 需要验证此session是否为客服
     * @return
     */
    public ResponseEntity<Object> isHaveNewRequest(HttpSession httpSession);

    /**
     * 获取所有待接受的请求
     * @param httpSession 需要验证此httpSession是否为客服
     * @return
     */
    public ResponseEntity<Object> getAllRequest(HttpSession httpSession);

    /**
     * 获取该用户的 实时聊天记录
     * @param httpSession
     * @param uid 用户id
     * @return
     */
    public ResponseEntity<Object> getChatMsg(HttpSession httpSession, String uid);
}
